package com.xxcloud.common.utils;

import org.slf4j.helpers.FormattingTuple;
import org.slf4j.helpers.MessageFormatter;

/**
 * Created by chenbingwen on 19/11/5.
 */
public class JunitConsoleOut {

    public static void console(String line, Object... objects) {
        FormattingTuple ft = MessageFormatter.arrayFormat(line, objects);
        System.out.println(ft.getMessage());
    }

    public static String consoleLine(String line, Object... objects) {
        FormattingTuple ft = MessageFormatter.arrayFormat(line, objects);
        return ft.getMessage();
    }

}
